s=1
for i in range (1,6):
    print(i)
    s=s*i
    print(s)
    